home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1994 #2 / Monster Media No. 2 (Monster Media)(1994).ISO / os2 / pastry10.zip / INSTALL.CMD < prev    next >
OS/2 REXX Batch file  |  1994-06-04  |  895b  |  22 lines

  1. /* rexx cmd file to install the Pastry Box on the deskop */
  2. /* files are installed on the boot drive under \OS2\APPS */
  3.  
  4. call rxfuncadd 'sysloadfuncs', 'rexxutil', 'sysloadfuncs'
  5. call sysloadfuncs                /* register system functions */
  6. address cmd '@echo off'          /* echo is turned off */
  7.  
  8. SysBootDrive=Filespec('Drive',Value('SYSTEM_INI',,'OS2ENVIRONMENT'));
  9.  
  10. 'COPY PASTRY.EXE '|| SysBootDrive||'\OS2\APPS'
  11. 'COPY PASTRY.ICO '|| SysBootDrive||'\OS2\APPS'
  12.  
  13. Settings = 'EXENAME='SysBootDrive||'\OS2\APPS\PASTRY.EXE;'
  14. Settings = Settings||'PROGTYPE=PM;MINIMIZED=NO;'
  15. Settings = Settings||'ICONFILE='SysBootDrive||'\OS2\APPS\PASTRY.ICO;'
  16. Settings = Settings||'CCVIEW=YES;'
  17. Settings = Settings||'STARTUPDIR='||SysBootDrive||'\OS2\APPS;'
  18. rc=SysCreateObject('WPProgram','Pastry Box','<WP_DESKTOP>',Settings);
  19.  
  20. if rc = 1 then Say "Pastry Box installed on desktop"
  21. Exit
  22.